package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.LovelyGodLogDao;
import com.vf.admin.client.service.LovelyGodLogService;
import com.vf.admin.miaodong.entity.LovelyGodLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LovelyGodLogServiceImpl implements LovelyGodLogService {

    @Autowired
    private LovelyGodLogDao lovelyGodLogDao;

    @Override
    public void add(Integer manUserId, Integer womanUserId) {
        LovelyGodLog params = new LovelyGodLog();
        params.setManUserId(manUserId);
        params.setWomanUserId(womanUserId);
        lovelyGodLogDao.add(params);
    }
    @Override
    public List<LovelyGodLog> listByManId(Integer manId) {

        return lovelyGodLogDao.listByManId(manId);
    }

    @Override
    public LovelyGodLog getLimitOne(Integer userId, Integer userId1) {
        return lovelyGodLogDao.getLimitOne(userId, userId1);
    }

    @Override
    public List<LovelyGodLog> listByWoManId(Integer womanUd) {
        return lovelyGodLogDao.listByWoManId(womanUd);
    }

}
